/*
 * @Date: 2023-11-19 15:22:22
 * @LastEditors: 付小磊
 */
// 培训管理
import request from '@/utils/request'

// 培训课目成绩展示列表
export function findTrainingSubjectResult (data) {
    return request({
        url: '/subject/findTrainingSubjectResult',
        method: 'post',
        data: data
    })
}

// 查看培训课程列表
export function queryTrainingSubjectList (data) {
    return request({
        url: '/subject/queryTrainingSubjectList',
        method: 'post',
        data: data
    })
}

// 新增培训人员考核结果
export function addTrainingPersonnelScore (data) {
    return request({
        url: '/subject/addTrainingPersonnelScore',
        method: 'post',
        data: data
    })
}

// 新增培训课程
export function addTrainingSubject (data) {
    return request({
        url: '/subject/addTrainingSubject',
        method: 'post',
        data: data
    })
}

// 新增培训人员
export function addTrainingSubjectPersonnel (data) {
    return request({
        url: '/subject/addTrainingSubjectPersonnel',
        method: 'post',
        data: data
    })
}

// 删除人员所有培训成绩
export function delPersonnelAllScore (data) {
    return request({
        url: `/subject/delPersonnelAllScore/${data}`,
        method: 'delete',
        data: {}
    })
}

// 删除课程培训人员
export function delTrainingSubjectPersonnel (data) {
    return request({
        url: `/subject/delTrainingSubjectPersonnel`,
        method: 'post',
        data: data
    })
}

// 查看课程详情
export function queryTrainingSubjectDetail (data) {
    return request({
        url: `/subject/queryTrainingSubjectList/${data}`,
        method: 'get',
        params: {}
    })
}

// 编辑考核成绩
export function updateTrainingPersonnelScore (data) {
    return request({
        url: `/subject/updateTrainingPersonnelScore`,
        method: 'get',
        params: {}
    })
}

// 编辑培训课程
export function updateTrainingSubject (data) {
    return request({
        url: `/subject/updateTrainingSubject`,
        method: 'post',
        params: {}
    })
}




